import settings

def openid(request):
  isAuthenticated = False
  openiduser = None
  if 'openiduser' in request.session and request.session['openiduser'] is not None:
    isAuthenticated = True
    openiduser = request.session['openiduser']
  return {'isAuthenticated': isAuthenticated, 'openiduser': openiduser }
